package cn.paul.wechatshop.dao;

import cn.paul.wechatshop.entity.ProductInfo;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;


/**
 * @author 徐凌峰
 * @date 2017/12/10 0010
 */
@Repository
public interface ProductInfoDao extends JpaRepository<ProductInfo,String> {
        Page<ProductInfo> findAllByProductStatus(Pageable pageable, Integer productStatus);

}
